package com.example.controller;

import com.example.common.lang.Result;
import com.example.service.WsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 测试专用
 */
@Controller
public class TestController extends BaseController{

    @Autowired
    WsService wsService;

    @ResponseBody
    @GetMapping("/test1")
    public Result showTips() {
        wsService.sendMessCountToUser(getProfileId(), 99);
        return Result.succ(null);
    }
}
